#include "optionswidget.h"
#include "filetable.h"
#include "slepui.h"



void OptionsWidget::createNormalizationOptions(){
    QLayout *layout = new QVBoxLayout(this);
    QWidget *normalizationOptionsWidget = new QWidget(this);
    normalizationOptionsWidget->setLayout(layout);

    tabWidget->addTab(normalizationOptionsWidget,tr("Normalization"));
    normOptions = new QGroupBox(tr("Start options"), this);

    QGridLayout *normalizationLayout = new QGridLayout;
    buttonGroupNorm = new QButtonGroup(this);
    labelNorm = new QLabel(tr("Normalization"));
    buttonGroupNorm->addButton(new QRadioButton(tr("No normalization")),0);
    buttonGroupNorm->addButton(new QRadioButton(tr("Please select mu and nu")),1);
    buttonGroupNorm->addButton(new QRadioButton(tr("Please Select mu and nu")),2);
    (buttonGroupNorm->button(0))->setChecked(true);
    opts->nFlag=0;

    normalizationLayout->addWidget(labelNorm,0,0,3,1, Qt::AlignTop | Qt::AlignLeft);
    normalizationLayout->addWidget(buttonGroupNorm->button(0), 0, 1, Qt::AlignLeft);
    normalizationLayout->addWidget(buttonGroupNorm->button(1), 1, 1, Qt::AlignLeft);
    normalizationLayout->addWidget(buttonGroupNorm->button(2), 2, 1, Qt::AlignLeft);

    normOptions->setLayout(normalizationLayout);
    layout->addWidget(normOptions);
    checkBoxMu = new QCheckBox(tr("Import mu from file"),this);
    checkBoxNu = new QCheckBox(tr("Import nu from file"),this);
    layout->addWidget(checkBoxMu);
    layout->addWidget(new QListWidget);
    layout->addWidget(checkBoxNu);
    layout->addWidget(new QListWidget);
    ((QBoxLayout*)layout)->addStretch();

}